# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=runvimtests
_pkgname=runVimTests
pkgver=1.30
pkgrel=2
pkgdesc="A testing framework for Vim"
url="https://github.com/inkarkat/runVimTests"
arch="noarch"
license="Vim"
depends="vim bash"
options="!check" # no return codes from test suite
install="$pkgname.post-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/inkarkat/runVimTests/archive/$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$pkgver"

package() {
	local _dest="$pkgdir/usr/share/vim/vimfiles"

	install -t "$_dest/bin" -D bin/runVimMsgFilter.vim
	install -t "$_dest/bin" -D bin/runVimTests.sh

	cp -R doc autoload "$_dest"

	mkdir -p "$pkgdir/usr/bin"
	cd "$pkgdir/usr/bin"
	ln -s ../share/vim/vimfiles/bin/runVimTests.sh runVimTests
}

sha512sums="d016d0e1fec531d168ceb9c2bd6df34ab31592c5349867ea979ebf45111e86d21893a3edafc326bb246019b5f94733dbaa87a289b49c09d6e60da3fdde42b383  runvimtests-1.30.tar.gz"
